﻿//------------------------------------------------------------------
// System Name:    smsGateway
// Component:      Data
// Create by:      Evans Liao (evansl@wicresoft.com)
// Create Date:    2011-01-03
//------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wicresoft.SMS.Common;

namespace Wicresoft.SMS.Data
{
    public interface IUserService
    {
        User GetUserItemByCIL(string cil);
        bool CreateOrUpdateUser(User user);
        bool CreateOrUpdateUser(C_evw_Employee[] users, bool isactive, bool isadmin);
        bool AskForActive(int id, string url);
        User GetUserItemByID(int id);
        List<UserInfo> GetAllUsers(bool iswithunactive);
        List<UserInfo> GetAllUsers(int index, int max, string key);
        List<UserInfo> GetAllUsers(int index, int max, string key, bool isPending);
        int GetPageCount(int max, string key);
        int GetPageCount(int max, string key, bool isPending);
        bool ActiveUsers(bool isactive, string[] userids);
        bool AllowUsers(bool isallow, string[] userids);
    }
}
